package com.tancw.cloud.payment.service;

import com.tancw.cloud.common.Result;
import org.apache.dubbo.config.annotation.DubboService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 支付服务接口
 */
@DubboService
public interface PaymentService {
    
    /**
     * 创建支付
     */
    Result<Map<String, Object>> createPayment(Long orderId, BigDecimal amount);
    
    /**
     * 查询支付
     */
    Result<Map<String, Object>> queryPayment(String paymentNo);
    
    /**
     * 退款
     */
    Result<Map<String, Object>> refundPayment(String paymentNo, BigDecimal amount);
}